package operate;

public class operator1 {
    public static void main(String[] args) {
        int a = 10;
        int b = 2;
        System.out.println(a + b);
        System.out.println(a - b);
        System.out.println(a * b);
        System.out.println(a / b);
        System.out.println(5 / 2);
        System.out.println(5.0 / 2);
        int i = 5;
        int j = 2;
        System.out.println(1.0 * i / j);


        System.out.println(a % b);
        System.out.println(3 % 2);


        System.out.println("-----------------------------------------");

        //abc + 5合起来就是abc5
        int a2 = 5;
        System.out.println("abc" + a2);
        System.out.println(a2 + 5);
        System.out.println( "cc" + a2 +'a');
        System.out.println(a2 + 'a' + "cc");




    }
}
